package com.seal.yoyoshop.service;

import com.seal.yoyoshop.bin.User;

import java.util.List;

public interface UserService {
    User getUserByUsername(String username);

    int newUser(User user);

    User getUserByUsernameAndPassword(String username, String password);

    int updateUserPassword(String username, String password);

    boolean updateUser(User user);

    List<User> getUserList(int page, int size);

    long getUserCount();

    User getUserById(int id);
}
